package cn.edu.cuit.mockfns.fam.tuples;

import cn.edu.cuit.mockfns.BusinessLogic;
import cn.edu.cuit.mockfns.fam.FAMEngine;

public class State
{
    protected FAMEngine famEngine;
    protected Integer id;

    public State()
    {
    }

    
    public State(FAMEngine famEngine)
    {
        this( famEngine, null );
    }

    public State(FAMEngine famEngine, Integer id)
    {
        this.id = id;
        this.famEngine = famEngine;
    }

    /**
     * Sub class should override this method as that to implement business logic.
     * */
    public void run()
    {
        //do something
    }

    public int getId()
    {
        return id;
    }

    protected FAMEngine famEngineInstance()
    {
        return famEngine;
    }
}
